package com.demo.test.service.impl;

import com.demo.test.entity.Winner;
import com.demo.test.mapper.WinnerMapper;
import com.demo.test.service.IWinnerService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XieHuan
 * @since 2017-06-13
 */
@Service
public class WinnerServiceImpl extends ServiceImpl<WinnerMapper, Winner> implements IWinnerService{

    @Autowired
    private WinnerMapper winnerMapper;

    @Override
    public List<Winner> selectWinnerOrderByPiao() {
        return winnerMapper.selectWinnerOrderByPiao();
    }
}
